POV-Ray : Newsgroups : povray.beta-test : Translation question : Translation question Server Time
31 Jul 2024 04:18:35 EDT (-0400)
  Translation question  
From: Patrick Dugan
Date: 8 Sep 2001 15:00:07
Message: <3b9a6ab7@news.povray.org>
If this is not the appropriate place to post this, please don't kill me.
I'm not sure exactly where I should so bear with me...

I have a set of statements used with Megapov 0.7 and I want to use them
within the Povray 3.5 beta.  Here are the statements:

////////////////////////////////////////////// START OF STATEMENTS
//////////////////////////
#declare R0=4;
#declare FUNC1=function {"sphere",<R0>}
#declare TH=function{"TH"}
#declare R=function{"R"}
#declare R2=function{sqrt(x*x+z*z)}
#declare PH=function{"PH"}

#declare Meteor =
isosurface {
 function
{FUNC1(x,y+x*x*0.01,z)-max(noise3d(cos(TH)*sin(PH)*5,cos(PH)*5,sin(TH)*sin(P
H)*5)^1.5,0.05)*1.5}
 eval
 max_gradient 16.7
 contained_by{ sphere {<0,0,0>,R0+1.5}}
 accuracy 0.01
 texture {Meteor_Texture}
}
////////////////////////////////////////////// END OF STATEMENTS
//////////////////////////


I honestly did not come up with this function but simply modified one to get
what I wanted within Megapov.  I did change the #declares to these:

#declare R0=4;
#declare FUNC1=function {"sphere"(R0)}
#declare TH=function{"TH"(1)}
#declare R=function{"R"(1)}
#declare R2=function{sqrt(x*x+z*z)}
#declare PH=function{"PH"(1)}

and there are no errors reported with the declares now, but I know that
doesn't mean they are right.  Povray now reports that the function statement
within the isosurface is wrong and despite trying my best (which isn't much
at best.) I cannot get this working.  Can anyone show me what the whole
thing SHOULD look like?


Thank you.

Sincerely,
Patrick Dugan


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.